MailPoet\Newsletter\NewslettersRepository S

Total Complexity 39
Dependencies 16
Dependents 44
Total lines 523
Lines of code 407
Logical lines of code 92
Comment lines 58
Methods 23
Properties 1

Methods 23

Method Rating Maintainability Complexity Lines of code
getArchives()
A
43 7 49
getAnalytics()
S
43 3 48
getStandardNewsletterListWithMultipleStatuses()
S
53 3 23
getNotificationHistoryItems()
S
56 3 18
bulkRestore()
S
50 2 32
bulkTrash()
S
50 2 30
findActiveByTypeAndGroup()
S
56 2 18
getStandardNewsletterSentCount()
S
58 2 16
getScheduledStandardEmailsAndActiveAutomaticEmails()
S
53 1 25
findSendingNotificationHistoryWithoutPausedOrInvalidTask()
S
56 1 19
getCountOfActiveAutomaticEmailsForEvent()
S
58 1 16
findDraftByTypes()
S
61 1 14
getStandardNewsletterList()
S
61 1 14
findActiveByTypes()
S
61 1 14
getCountForStatusAndTypes()
S
62 1 13
deleteByIds()
S
64 1 11
prefetchOptions()
S
64 1 11
prefetchSegments()
S
64 1 11
setAsCorrupt()
S
74 1 5
__construct()
S
76 1 4
getCorruptNewsletters()
S
78 1 3
getEntityClassName()
S
82 1 3
fetchChildrenIds()
S
65 1 10